//
//  SYBaseViewController.h
//  ChatDemo-UI2.0
//
//  Created by syun on 16/7/4.
//  Copyright © 2016年 syun. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SYNavigationController.h"
#import "SYNavigationBar.h"
#import "EmptyStateView.h"

@interface SYBaseViewController : UIViewController<reloadDataDelegate>

@property(nonatomic,strong)UIBarButtonItem *left;

@property(nonatomic,assign) BOOL isRootViewController;

@property (nonatomic, strong) SYNavigationController *syNavController;
@property (nonatomic, strong) SYNavigationBar *navBar;

@property (nonatomic, assign) BOOL swipeRightGestureEnable;

@property (nonatomic, strong) EmptyStateView *networkErrorView;//无网络状态

-(void)back;

//添加导航栏左侧按钮
- (void)addLeftBarButtonItemWithTitle:(NSString *)title target:(id)target action:(SEL)action backgroundImage:(UIImage *)bgImage;


@end
